<template>
  <div class="loginwang">
    新的登陆页面
    <button @click="showregisterwang">注册页面</button>
    <registerwang v-if="registerwangshow"></registerwang>
  </div>
</template>

<script type="text/ecmascript-6">
  import registerwang from './registerwang';

  export default {
    data() {
      return {
        registerwangshow: false
      };
    },
    components: {
      registerwang
    },
    methods: {
      showregisterwang() {
        this.registerwangshow = true;
      }
    }
  }
  ;
</script>

<style lang="stylus" type="text/stylus" rel="stylesheet/stylus">
  .loginwang
    position absolute
    left 0
    top 0
    background #fff
    z-index 1000
    width 100%
    height 100%
</style>
